package com.apes.autoparts.product.model;

import com.apes.framework.jpa.BaseModel;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.comment.Comment;
import com.apes.framework.jpa.generator.ApesGenerator;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = SupplierCodingRecord.CONST_TABLE_NAME)
public class SupplierCodingRecord extends BaseModel {

    public static final String CONST_TABLE_NAME = "BTR_OE_PARETSNAME";
    @Id
    @Column(name = "id", length = 10)
    @ApesGenerator(code = CONST_TABLE_NAME, name = "译码数据记录")
    @Comment("编码")
    private String id;

    @Column(name = "vin_code", length = 255)
    @Comment("车架号")
    private String VINCode;

    @Column(name = "cartypeids", length = 255)
    @Comment("车型ID")
    private String cartypeids;

    @Column(name = "vinanalysesource", length = 255)
    @Comment("解析结果")
    private String vinAnalyseSource;//(0为自解析,其他均为非自解析)


    @Column(name = "partsnames", length = 255)
    @Comment("零件名称")
    private String partsNames;

    @Column(name = "brandname", length = 255)
    @Comment("品牌名称")
    private String brandName;


    @Column(name = "epcpartsname", length = 255)
    @Comment("EPC版本名称")
    private String epcPartsName;

    @Column(name = "installnum", length = 255)
    @Comment("每车用量")
    private String installnum;


    @Column(name = "partscode", length = 255)
    @Comment("零件号")
    private String partsCode;

    @Column(name = "remark", length = 4000)
    @Comment("备注")
    private String remark;

    @Column(name = "standard_name", length = 255)
    @Comment("巴图鲁标准名称")
    private String standardName;



}
